# -*- coding: utf-8 -*-

# Copyright 2003-2007 Jarek Zgoda <jarek.zgoda@gmail.com>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.

"""The whole-application constants"""

__revision__ = '$Id: const.py 3 2007-08-11 12:24:01Z jarek.zgoda $'

import os

# program directories and file paths
USER_DIR = os.path.expanduser('~/.leech.fm')
if not os.path.isdir(USER_DIR):
    os.makedirs(USER_DIR)
BASE_DIR = os.path.dirname(os.path.realpath(__file__))
GLADE_PATH = os.path.join(BASE_DIR, 'glade', 'leechfm.glade')
APP_ICON = os.path.join(BASE_DIR, 'banana.png')

DEBUG = True

VERSION = ('0', '1', '0')
VERSION_STRING = '.'.join(VERSION)

TORRENTZ_FEED_URL = 'http://www.torrentz.com/feed?q=%(term)s'
AUDIOSCROBBLER_FEED_URL = 'http://ws.audioscrobbler.com/1.0/user/%(username)s/systemrecs.rss'
